<style>
#brush {
  display: block;
  margin: 0 auto;
}
</style>
<canvas id="brush"></canvas>